package com.exam.common.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

/**
 * @ClassName : Cascader
 * @Description : 级联选择器
 * @Author : WHB
 */
@Data
@AllArgsConstructor
public class Cascader {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long value;
    private String label;
    private List<Cascader> children;

    public Cascader(Long value, String label) {
        this.value = value;
        this.label = label;
    }
}
